package pathways.util.helper;

/**
 * Title:        Pathways
 * Description:  Pure Java version of the Pathways Project.
 * Copyright:    Copyright (c) 2002
 * Company:      Ants Technologies
 * @author Veejay Sani
 * @version 1.0
 */

import java.util.Vector;

import javax.swing.AbstractListModel;

public class CItemListModel extends AbstractListModel
{
  public CItemListModel(Vector v)
  {
    data = v;  
  }
  
  public Object getElementAt(int index)
  {
    return data.get(index);
  }
  
  public int getSize()
  {
     return data.size();
  }
  
  public Vector getVector()
  {
    return data;  
  }
  
  private Object selectedItem; 
  private Vector data; 
}